﻿#ifndef CMDLINECHARTWINDOWCHANGEGUIDELINEPROPERTY_H
#define CMDLINECHARTWINDOWCHANGEGUIDELINEPROPERTY_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartWindowChangeGuideLineProperty : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartWindowChangeGuideLineProperty();
            ~CmdLineChartWindowChangeGuideLineProperty();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(int guideLineID, double value, int guideLineStyle, double guideLineThickness, QString guideLineColor) { 
                m_guideLineID = guideLineID; 
                m_value = value; 
                m_guideLineStyle = guideLineStyle; 
                m_guideLineThickness = guideLineThickness; 
                m_guideLineColor = guideLineColor; 
             }

        private:
            int m_guideLineID; 
            double m_value; 
            int m_guideLineStyle; 
            double m_guideLineThickness; 
            QString m_guideLineColor; 
    };

} // namespace PostCommand

#endif
